package tj.eskhata.pos.web.common;

import org.apache.wicket.PageParameters;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.spring.injection.annot.SpringBean;
import tj.eskhata.pos.services.PosService;
import tj.eskhata.pos.web.BasePage;


public class Message extends BasePage 
{	
	@SpringBean
	private PosService service;	
		
	public Message(final PageParameters parameters) {
	
		String message="";
		if (parameters.containsKey("message")){
			message=parameters.getString("message");
			add(new Label("message", message));
		}else{
			add(new Label("message",""));
		}
		
		
	}
}
